package hihocoder;
import java.util.Scanner;

/**
 * 
 */

/**
 * @author zhongfang
 *
 */
public class 后序遍历 {

	static StringBuilder postOrder(String s1,String s2){
		if(s1.length()<=1){
			return new StringBuilder(s1);
		}
		StringBuilder string = new StringBuilder();
		char root=s1.charAt(0);
		int index=s2.indexOf(root);
		string.append(postOrder(s1.substring(1, index+1), s2.substring(0,index)));
		string.append(postOrder(s1.substring(index+1), s2.substring(index+1)));
		string.append(root);
		return string;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
//		String s1=scanner.nextLine();
//		String s2=scanner.nextLine();
//		System.out.println(postOrder(s1, s2));
		int x=-2147483648;
		System.out.println(Math.abs(x));
	}

}
